package com.etc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.etc.entity.User;

@Repository(value="userDao")
public interface UserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    List<User> selectUserBypage(@Param("start") int start, @Param("pagesize") int pagesize, @Param("content") String content);
    
    int selecCount(@Param("content")String content);
    
    boolean updateStatus(User record);
    
    User selectUserByName(String name);
    
    boolean deleteUsers(int[] arr);
}